﻿
namespace ZR.Model.Dto.Business.ProductionControl
{
    /// <summary>
    /// 数据库采集配置表查询对象
    /// </summary>
    public class DatabaseCollectionConfigQueryDto : PagerInfo
    {
        public string BusinessCode { get; set; }
    }

    /// <summary>
    /// 数据库采集配置表输入输出对象
    /// </summary>
    public class DatabaseCollectionConfigDto
    {
        [Required(ErrorMessage = "自增主键不能为空")]
        public int Id { get; set; }

        [Required(ErrorMessage = "业务编码，用于业务关联不能为空")]
        public string BusinessCode { get; set; }

        [Required(ErrorMessage = "设备名称不能为空")]
        public string DeviceName { get; set; }

        [Required(ErrorMessage = "IP地址不能为空")]
        public string Ip { get; set; }

        [Required(ErrorMessage = "端口号不能为空")]
        public int Port { get; set; }

        [Required(ErrorMessage = "设备类型不能为空")]
        public string Type { get; set; }

        public string DataBase { get; set; }

        public string Uid { get; set; }

        public string Pwd { get; set; }

        [Required(ErrorMessage = "Nullity不能为空")]
        public bool Nullity { get; set; }

        public DateTime? CreatedTime { get; set; }

       
        [ExcelColumn(Name = "设备类型")]
        public string TypeLabel { get; set; }
    }
}